/* Class40 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.StringReader;
import java.io.StringWriter;

public class Class40 {
	public byte[] aByteArray744;
	public static JString aClass3_745;
	public static JString aClass3_746;
	public static JString aClass3_747 = Class39_Sub5_Sub9.createJString(110, "gelb:");
	public static int anInt748;
	public static int anInt749;
	public static JString aClass3_750 = Class39_Sub5_Sub9.createJString(121, "leuchten3:");
	public static JString aClass3_751;
	public static long aLong752;
	public static JString aClass3_753;
	public static int packetSize;
	public static JString aClass3_755;
	public static int anInt756;
	public static int anInt757;
	public static JString aClass3_758;
	public int[] anIntArray759;
	public static Class9 aClass9_760;
	public int[] anIntArray761;
	public static int[] anIntArray762;
	public static JString aClass3_763;
	public static boolean aBoolean764;

	public static Class39_Sub5_Sub18 method881(int i, int i_0_) {
		Class39_Sub5_Sub18 class39_sub5_sub18 = ((Class39_Sub5_Sub18) Class4.aClass7_70.method133((byte) -91, (long) i_0_));
		if (class39_sub5_sub18 != null)
			return class39_sub5_sub18;
		byte[] is = Class43.aClass9_816.method165(30605, 13, i_0_);
		class39_sub5_sub18 = new Class39_Sub5_Sub18();
		class39_sub5_sub18.anInt2137 = i_0_;
		if (is != null)
			class39_sub5_sub18.method779(180, new Stream(is));
		Class4.aClass7_70.method135(class39_sub5_sub18, (long) i_0_, (byte) -123);
		return class39_sub5_sub18;
	}

	public static void method882(int i) {
		if (Signlink.aString401.toLowerCase().indexOf("microsoft") != -1) {
			Player.anIntArray2532[189] = 26;
			Player.anIntArray2532[192] = 58;
			Player.anIntArray2532[187] = 27;
			Player.anIntArray2532[186] = 57;
			Player.anIntArray2532[221] = 43;
			Player.anIntArray2532[220] = 74;
			Player.anIntArray2532[188] = 71;
			Player.anIntArray2532[190] = 72;
			Player.anIntArray2532[222] = 59;
			Player.anIntArray2532[191] = 73;
			Player.anIntArray2532[223] = 28;
			Player.anIntArray2532[219] = 42;
		} else {
			Player.anIntArray2532[45] = 26;
			Player.anIntArray2532[61] = 27;
			if (Signlink.aMethod398 == null) {
				Player.anIntArray2532[222] = 59;
				Player.anIntArray2532[192] = 58;
			} else {
				Player.anIntArray2532[520] = 59;
				Player.anIntArray2532[192] = 28;
				Player.anIntArray2532[222] = 58;
			}
			Player.anIntArray2532[44] = 71;
			Player.anIntArray2532[91] = 42;
			Player.anIntArray2532[47] = 73;
			Player.anIntArray2532[59] = 57;
			Player.anIntArray2532[92] = 74;
			Player.anIntArray2532[46] = 72;
			Player.anIntArray2532[93] = 43;
		}
	}

	public static boolean method883(RSInterface class39_sub5_sub17, int i) {
		if (class39_sub5_sub17.anIntArray2001 == null)
			return false;
		for (int i_1_ = 0; class39_sub5_sub17.anIntArray2001.length > i_1_; i_1_++) {
			int i_2_ = Class68.applyConfigValues(i_1_, 2, class39_sub5_sub17);
			int i_3_ = class39_sub5_sub17.anIntArray2017[i_1_];
			if (class39_sub5_sub17.anIntArray2001[i_1_] == 2) {
				if (i_3_ <= i_2_)
					return false;
			} else if (class39_sub5_sub17.anIntArray2001[i_1_] == 3) {
				if (i_3_ >= i_2_)
					return false;
			} else if (class39_sub5_sub17.anIntArray2001[i_1_] != 4) {
				if (i_2_ != i_3_)
					return false;
			} else if (i_2_ == i_3_)
				return false;
		}
		return true;
	}

	public static String method884(Throwable throwable, byte i) throws IOException {
		String string;
		if (throwable instanceof RuntimeException_Sub1) {
			RuntimeException_Sub1 runtimeexception_sub1 = (RuntimeException_Sub1) throwable;
			throwable = runtimeexception_sub1.aThrowable1213;
			string = runtimeexception_sub1.aString1215 + " | ";
		} else
			string = "";
		StringWriter stringwriter = new StringWriter();
		PrintWriter printwriter = new PrintWriter(stringwriter);
		throwable.printStackTrace(printwriter);
		printwriter.close();
		String string_4_ = stringwriter.toString();
		BufferedReader bufferedreader = new BufferedReader(new StringReader(string_4_));
		String string_5_ = bufferedreader.readLine();
		for (;;) {
			String string_6_ = bufferedreader.readLine();
			if (string_6_ == null)
				break;
			int i_7_ = string_6_.indexOf('(');
			int i_8_ = string_6_.indexOf(')', i_7_ + 1);
			if (i_7_ >= 0 && i_8_ >= 0) {
				String string_9_ = string_6_.substring(i_7_ + 1, i_8_);
				int i_10_ = string_9_.indexOf(".java:");
				if (i_10_ >= 0) {
					string_9_ = (string_9_.substring(0, i_10_) + string_9_.substring(i_10_ + 5));
					string += string_9_ + ' ';
					continue;
				}
				string_6_ = string_6_.substring(0, i_7_);
			}
			string_6_ = string_6_.trim();
			string_6_ = string_6_.substring(string_6_.lastIndexOf(' ') + 1);
			string_6_ = string_6_.substring(string_6_.lastIndexOf('\t') + 1);
			string += string_6_ + ' ';
		}
		string += "| " + (String) string_5_;
		return string;
	}

	public int method885(int i, byte[] is, int i_11_, int i_12_, byte[] is_13_, int i_14_) {
		if (i_11_ == 0)
			return 0;
		i_11_ += i;
		int i_15_ = 0;
		int i_16_ = i_12_;
		for (;;) {
			byte i_17_ = is_13_[i_16_];
			if (i_17_ >= 0)
				i_15_++;
			else
				i_15_ = anIntArray761[i_15_];
			int i_18_;
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i_11_ <= i)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x40) == 0)
				i_15_++;
			else
				i_15_ = anIntArray761[i_15_];
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i_11_ <= i)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x20) == 0)
				i_15_++;
			else
				i_15_ = anIntArray761[i_15_];
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i >= i_11_)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x10) != 0)
				i_15_ = anIntArray761[i_15_];
			else
				i_15_++;
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i >= i_11_)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x8) != 0)
				i_15_ = anIntArray761[i_15_];
			else
				i_15_++;
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i_11_ <= i)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x4) == 0)
				i_15_++;
			else
				i_15_ = anIntArray761[i_15_];
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i >= i_11_)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x2) != 0)
				i_15_ = anIntArray761[i_15_];
			else
				i_15_++;
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i_11_ <= i)
					break;
				i_15_ = 0;
			}
			if ((i_17_ & 0x1) == 0)
				i_15_++;
			else
				i_15_ = anIntArray761[i_15_];
			if ((i_18_ = anIntArray761[i_15_]) < 0) {
				is[i++] = (byte) (i_18_ ^ 0xffffffff);
				if (i_11_ <= i)
					break;
				i_15_ = 0;
			}
			i_16_++;
		}
		return i_16_ + 1 - i_12_;
	}

	public int method886(byte[] is, int i, int i_19_, int i_20_, int i_21_, byte[] is_22_) {
		i_20_ += i_19_;
		int i_23_ = 0;
		int i_24_ = i_21_ << 3;
		for (/**/; i_20_ > i_19_; i_19_++) {
			int i_25_ = is[i_19_] & 0xff;
			int i_26_ = aByteArray744[i_25_];
			int i_27_ = anIntArray759[i_25_];
			if (i_26_ == 0)
				throw new RuntimeException("No codeword for data value " + i_25_);
			int i_28_ = i_24_ >> 3;
			int i_29_ = i_24_ & 0x7;
			i_23_ &= -i_29_ >> 31;
			int i_30_ = i_28_ + (i_26_ + (i_29_ - 1) >> 3);
			i_29_ += 24;
			is_22_[i_28_] = (byte) (i_23_ = Queue.method989(i_23_, i_27_ >>> i_29_));
			if (i_28_ < i_30_) {
				i_29_ -= 8;
				i_28_++;
				is_22_[i_28_] = (byte) (i_23_ = i_27_ >>> i_29_);
				if (i_30_ > i_28_) {
					i_28_++;
					i_29_ -= 8;
					is_22_[i_28_] = (byte) (i_23_ = i_27_ >>> i_29_);
					if (i_28_ < i_30_) {
						i_28_++;
						i_29_ -= 8;
						is_22_[i_28_] = (byte) (i_23_ = i_27_ >>> i_29_);
						if (i_30_ > i_28_) {
							i_29_ -= 8;
							i_28_++;
							is_22_[i_28_] = (byte) (i_23_ = i_27_ << -i_29_);
						}
					}
				}
			}
			i_24_ += i_26_;
		}
		return -i_21_ + (i_24_ + 7 >> 3);
	}

	public static void method887(byte i) {
		Class39_Sub5_Sub11.aClass7_1844.method134(27392);
		Class37.aClass7_655.method134(27392);
	}

	public static void method888(int i) {
		if (Class39_Sub13.aClass42_1502 != null) {
			synchronized (Class39_Sub13.aClass42_1502) {
				Class39_Sub13.aClass42_1502 = null;
			}
		}
		if (i != 2372)
			aLong752 = 96L;
	}

	public static void method889(int i, int i_31_, int i_32_, int i_33_, int i_34_) {
		Class39_Sub13 class39_sub13 = ((Class39_Sub13) Class14.aClass19_213.method245((byte) -19, (long) i_31_));
		if (class39_sub13 == null) {
			class39_sub13 = new Class39_Sub13();
			Class14.aClass19_213.method238((long) i_31_, class39_sub13, (byte) -74);
		}
		if (class39_sub13.anIntArray1505.length <= i) {
			int[] is = new int[i + 1];
			int[] is_35_ = new int[i + 1];
			for (int i_36_ = 0; i_36_ < class39_sub13.anIntArray1505.length; i_36_++) {
				is[i_36_] = class39_sub13.anIntArray1505[i_36_];
				is_35_[i_36_] = class39_sub13.anIntArray1504[i_36_];
			}
			for (int i_37_ = class39_sub13.anIntArray1505.length; i_37_ < i; i_37_++) {
				is[i_37_] = -1;
				is_35_[i_37_] = 0;
			}
			class39_sub13.anIntArray1504 = is_35_;
			class39_sub13.anIntArray1505 = is;
		}
		class39_sub13.anIntArray1505[i] = i_32_;
		class39_sub13.anIntArray1504[i] = i_34_;
	}

	public Class40(byte[] is) {
		int i = is.length;
		anIntArray761 = new int[8];
		anIntArray759 = new int[i];
		int[] is_38_ = new int[33];
		aByteArray744 = is;
		int i_39_ = 0;
		for (int i_40_ = 0; i > i_40_; i_40_++) {
			int i_41_ = is[i_40_];
			if (i_41_ != 0) {
				int i_42_ = is_38_[i_41_];
				int i_43_ = 1 << -i_41_ + 32;
				anIntArray759[i_40_] = i_42_;
				int i_44_;
				if ((i_42_ & i_43_) == 0) {
					for (int i_45_ = i_41_ - 1; i_45_ >= 1; i_45_--) {
						int i_46_ = is_38_[i_45_];
						if (i_42_ != i_46_)
							break;
						int i_47_ = 1 << -i_45_ + 32;
						if ((i_46_ & i_47_) == 0)
							is_38_[i_45_] = Queue.method989(i_47_, i_46_);
						else {
							is_38_[i_45_] = is_38_[i_45_ - 1];
							break;
						}
					}
					i_44_ = i_43_ | i_42_;
				} else
					i_44_ = is_38_[i_41_ - 1];
				is_38_[i_41_] = i_44_;
				for (int i_48_ = i_41_ + 1; i_48_ <= 32; i_48_++) {
					if (is_38_[i_48_] == i_42_)
						is_38_[i_48_] = i_44_;
				}
				int i_49_ = 0;
				for (int i_50_ = 0; i_41_ > i_50_; i_50_++) {
					int i_51_ = -2147483648 >>> i_50_;
					if ((i_51_ & i_42_) != 0) {
						if (anIntArray761[i_49_] == 0)
							anIntArray761[i_49_] = i_39_;
						i_49_ = anIntArray761[i_49_];
					} else
						i_49_++;
					i_51_ >>>= 1;
					if (anIntArray761.length <= i_49_) {
						int[] is_52_ = new int[anIntArray761.length * 2];
						for (int i_53_ = 0; anIntArray761.length > i_53_; i_53_++)
							is_52_[i_53_] = anIntArray761[i_53_];
						anIntArray761 = is_52_;
					}
				}
				anIntArray761[i_49_] = i_40_ ^ 0xffffffff;
				if (i_39_ <= i_49_)
					i_39_ = i_49_ + 1;
			}
		}
	}

	public static void method890(boolean bool) {
		aClass3_751 = null;
		aClass9_760 = null;
		aClass3_753 = null;
		aClass3_745 = null;
		aClass3_758 = null;
		aClass3_746 = null;
		anIntArray762 = null;
		aClass3_747 = null;
		aClass3_750 = null;
		aClass3_763 = null;
		aClass3_755 = null;
	}

	static {
		anInt749 = 0;
		aLong752 = 0L;
		aClass3_746 = (Class39_Sub5_Sub9.createJString(114, "Moderator option: Mute player for 48 hours: <ON>"));
		aClass3_751 = aClass3_746;
		aClass3_753 = Class39_Sub5_Sub9.createJString(104, "Enter name of friend to delete from list");
		aClass3_745 = Class39_Sub5_Sub9.createJString(113, "Bitte versuchen Sie es erneut)3");
		aClass3_758 = Class39_Sub5_Sub9.createJString(125, "Bitte versuchen Sie)1");
		anInt748 = 0;
		aClass3_763 = (Class39_Sub5_Sub9.createJString(125, "Bitte wenden Sie sich an den Kundendienst)3"));
		anIntArray762 = new int[256];
		aBoolean764 = false;
		packetSize = 0;
		anInt756 = 0;
		aClass3_755 = aClass3_753;
	}
}
